<script type="text/javascript">
function insert(file){
	$("#hinhanh", top.document).val(file);
	parent.$.fn.colorbox.close();
}
</script>
<? $seg2 = $this->uri->segment(2); ?>

<div class="media-upload-header">
    <ul id="menu">
        <li><a href="<?=base_url()?>editor/index" <? if($seg2=='index'){echo ' class="current"';}?>>Thư viện</a></li>
        <li><a href="<?=base_url()?>editor/upload" <? if($seg2=='upload'){echo ' class="current"';}?>>Upload FIle</a></li>
        <li>
            <div class="defaults">
                <p class="element">
                    <label for="insert_width">Image Width:</label>
                    <input type="text" value="0" name="insert_width" id="insert_width">
                    <span>Left</span>
                    <input type="radio" value="left" name="insert_float">
                    <span>Right</span>
                    <input type="radio" value="right" name="insert_float">
                    <span>None</span>
                    <input type="radio" checked="checked" value="none" name="insert_float">
                </p>
            </div>
        </li>
    </ul>
</div>
<div style="padding: 20px;">
    <ul class="list_img">
        <? foreach($list as $rs):?>
        <li>
            <div> <img onclick="javascript:insertImage('<?=base_url_site().'uploads/images/'.$rs->lb_name?>', '<?=$rs->lb_name?>')" src="<?=base_url_site().'uploads/images/'.$rs->lb_name?>" alt="" class="vnit_img" title="Click chọn ảnh"></div>
            <div class="title">
                <?=$rs->lb_name?>
            </div>
        </li>
        <? endforeach;?>
    </ul>
    <div class="pages" style="clear:both;">
        <?=$pagination?>
    </div>
</div>
